<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页 - AI简历分析系统</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
    <!-- Bootstrap Icons -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
    <style>
        /* CSS变量定义 */
        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #343a40 0%, #212529 100%);
            --success-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            --warning-gradient: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
            --danger-gradient: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
            --primary-color: #667eea;
            --secondary-color: #764ba2;
            --text-color: #333;
            --text-muted: #6c757d;
            --white: #ffffff;
            --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
        }
        
        /* 基础样式 */
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        /* 导航栏样式 */
        .navbar {
            box-shadow: var(--shadow-sm);
            background-color: rgba(52, 58, 64, 0.95);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        
        .nav-link {
            transition: all 0.3s ease;
            position: relative;
            padding: 0.75rem 1rem;
            font-weight: 500;
        }
        
        .nav-link:hover {
            transform: translateY(-2px);
            color: #e9ecef !important;
        }
        
        .nav-link.active {
            color: var(--white) !important;
            font-weight: 600;
        }
        
        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10px;
            right: 10px;
            height: 2px;
            background-color: var(--white);
            border-radius: 2px;
        }
        
        .navbar-brand {
            transition: all 0.3s ease;
        }
        
        .navbar-brand:hover {
            transform: translateY(-2px);
        }
        
        /* 介绍部分样式 */
        .intro-section {
            padding: 8rem 0 6rem 0;
            background: rgba(255, 255, 255, 0.95);
            margin-top: -2rem;
            border-radius: 0 0 30px 30px;
            position: relative;
            overflow: hidden;
        }
        
        .intro-section::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 30%;
            height: 100%;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
            clip-path: polygon(100% 0, 0 0, 100% 100%);
        }
        
        .intro-content {
            max-width: 600px;
            position: relative;
            z-index: 1;
        }
        
        .intro-content h1 {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-fill-color: transparent;
            display: inline-block;
        }
        
        /* 统计数据样式 */
        .stats-section {
            background: var(--primary-gradient);
            color: var(--white);
            padding: 3rem 0;
            margin: 4rem 0;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .stat-item {
            text-align: center;
            padding: 1.5rem;
            transition: transform 0.3s ease;
        }
        
        .stat-item:hover {
            transform: translateY(-5px);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .stat-label {
            font-size: 1rem;
            opacity: 0.9;
        }
        
        /* 特色功能样式 */
        .features-section {
            padding: 4rem 0;
        }
        
        .feature-card {
            border-radius: var(--border-radius);
            border: none;
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            height: 100%;
            overflow: hidden;
            background-color: var(--white);
        }
        
        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }
        
        .feature-card .card-body {
            padding: 2rem;
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
            padding: 1rem;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 50%;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* 用户评价样式 */
        .testimonial-section {
            padding: 4rem 0;
            background-color: #f8f9fa;
        }
        
        .testimonial-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            height: 100%;
            border: none;
        }
        
        .testimonial-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }
        
        .testimonial-content {
            font-style: italic;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
            position: relative;
            padding: 0 1.5rem;
            line-height: 1.6;
        }
        
        .testimonial-content::before {
            content: '"';
            position: absolute;
            top: -15px;
            left: 0;
            font-size: 3rem;
            color: rgba(102, 126, 234, 0.1);
            font-family: Georgia, serif;
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
            margin-top: 2rem;
        }
        
        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin-right: 1rem;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-weight: bold;
            font-size: 1.25rem;
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
        }
        
        /* 按钮样式 */
        .btn-primary {
            background: var(--primary-gradient);
            border: none;
            transition: all 0.3s ease;
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: all 0.5s ease;
        }
        
        .btn-primary:hover::before {
            left: 100%;
        }
        
        /* Shimmer动画 */
        .shimmer {
            background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }
        
        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }
        
        /* 页脚样式 */
        footer {
            background: var(--secondary-gradient);
            color: var(--white);
            padding: 4rem 0 2rem 0;
        }
        
        footer a {
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.3s ease;
        }
        
        footer a:hover {
            color: var(--white);
            transform: translateY(-2px);
        }
        
        /* 淡入动画 */
        .fade-in {
            animation: fadeIn 0.8s ease-in-out;
            opacity: 0;
            animation-fill-mode: forwards;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 浮动动画 */
        .float {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-10px);
            }
            100% {
                transform: translateY(0px);
            }
        }
        
        /* 缩放动画 */
        .scale {
            transition: transform 0.3s ease;
        }
        
        .scale:hover {
            transform: scale(1.03);
        }
        
        /* 响应式优化 */
        @media (max-width: 768px) {
            .intro-section {
                padding: 6rem 0 4rem 0;
            }
            
            .intro-content h1 {
                font-size: 2rem;
            }
            
            .stat-number {
                font-size: 1.8rem;
            }
            
            .feature-icon {
                font-size: 2.5rem;
                width: 70px;
                height: 70px;
            }
        }
        
        @media (max-width: 576px) {
            .intro-content h1 {
                font-size: 1.8rem;
            }
            
            .navbar-brand {
                font-size: 1.2rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark sticky-top">
        <div class="container">
            <a class="navbar-brand" href="/home">
                <i class="bi bi-robot me-2"></i> AI简历助手
            </a>
            <button
                class="navbar-toggler"
                type="button"
                data-bs-toggle="collapse"
                data-bs-target="#navbarNav"
                aria-controls="navbarNav"
                aria-expanded="false"
                aria-label="Toggle navigation"
            >
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link active" href="/home">
                            <i class="bi bi-house-door mr-1"></i> 首页
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/resume/analysis">
                            <i class="bi bi-file-text mr-1"></i> 简历分析
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/interview/prepare">
                            <i class="bi bi-play-circle mr-1"></i> 开始面试
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/interview/history">
                            <i class="bi bi-clock-history mr-1"></i> 面试历史
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/user/management">
                            <i class="bi bi-people mr-1"></i> 用户管理
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/logout">
                            <i class="bi bi-box-arrow-right mr-1"></i> 退出登录
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 介绍部分 -->
    <section class="intro-section">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-lg-8 text-center intro-content">
                    <h1 class="display-4 font-weight-bold fade-in mb-4">
                        欢迎使用 <span>AI 简历分析系统</span>
                    </h1>
                    <p class="lead mt-4 text-muted fade-in" style="animation-delay: 0.2s">
                        专业的简历分析，精准的优化建议，助您在求职竞争中脱颖而出
                    </p>
                    <div class="mt-8 fade-in" style="animation-delay: 0.4s">
                        <a class="btn btn-primary btn-lg rounded-pill" href="/resume/analysis" role="button">
                            <i class="bi bi-file-text"></i> 开始简历分析
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 统计数据部分 -->
        <section class="stats-section fade-in" style="animation-delay: 0.6s">
            <div class="row g-4">
                <div class="col-md-4 stat-item">
                    <div class="stat-number"><i class="bi bi-check-circle"></i> 10,000+</div>
                    <div class="stat-label">成功面试</div>
                </div>
                <div class="col-md-4 stat-item">
                    <div class="stat-number"><i class="bi bi-heart"></i> 98%</div>
                    <div class="stat-label">用户满意度</div>
                </div>
                <div class="col-md-4 stat-item">
                    <div class="stat-number"><i class="bi bi-briefcase"></i> 100+</div>
                    <div class="stat-label">面试行业</div>
                </div>
            </div>
        </section>

        <!-- 特色功能部分 -->
        <section class="features-section fade-in" style="animation-delay: 0.8s">
            <h2 class="text-center mb-8">
                <i class="bi bi-star text-primary me-2"></i> 为什么选择我们
            </h2>
            <div class="row g-4">
                <div class="col-md-4">
                    <div class="card feature-card text-center">
                        <div class="card-body">
                            <div class="feature-icon"><i class="bi bi-file-text"></i></div>
                            <h5 class="card-title mb-3">智能简历分析</h5>
                            <p class="card-text text-muted">
                                上传您的简历，AI将分析内容并生成针对性的面试问题，助您充分准备。
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card feature-card text-center">
                        <div class="card-body">
                            <div class="feature-icon"><i class="bi bi-clipboard-check"></i></div>
                            <h5 class="card-title mb-3">专业面试评估</h5>
                            <p class="card-text text-muted">
                                根据您的回答，AI将提供客观评分和详细的改进建议，帮您提升面试表现。
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card feature-card text-center">
                        <div class="card-body">
                            <div class="feature-icon"><i class="bi bi-history"></i></div>
                            <h5 class="card-title mb-3">面试历史记录</h5>
                            <p class="card-text text-muted">
                                查看您的面试历史记录，跟踪您的进步和成长，不断优化面试技巧。
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

    <footer class="mt-12">
        <div class="container">
            <div class="row justify-content-center mb-6">
                <div class="col-lg-6 text-center">
                    <h4 class="mb-4"><i class="bi bi-robot me-2"></i> AI简历助手</h4>
                    <p class="text-muted">专业的AI面试练习平台，助您在求职道路上一臂之力</p>
                </div>
            </div>
            <div class="row justify-content-center">
                <div class="col-auto">
                    <a href="#" class="text-light mx-3"><i class="bi bi-github"></i></a>
                    <a href="#" class="text-light mx-3"><i class="bi bi-twitter"></i></a>
                    <a href="#" class="text-light mx-3"><i class="bi bi-linkedin"></i></a>
                </div>
            </div>
            <div class="row justify-content-center mt-6">
                <div class="col-auto">
                    <p class="text-muted">&copy; 2023 AI面试助手. 保留所有权利。</p>
                </div>
            </div>
        </div>
    </footer>

    <!-- Bootstrap Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
            crossorigin="anonymous"></script>
    
    <!-- 外部JavaScript文件 -->
    <script src="/js/main.js"></script>
</body>
</html>
